<!-- 主题设置模板 -->

<style>
  .radio-container {
    display: flex;
    justify-content: left;
    /* 如果你想要居中对齐 */
  }
</style>
<script type="text/html" template lay-done="layui.data.sendParams(d.params);">

</script>

<div id="appId">
  <div class="radio-container" @change="goAd">

    <vs-radio success v-for="(year, index) in years" :key="index" v-model="picked" :val="index + 1"
      style="margin: 6px 10px 0 0;">
      第{{chineseNum[index + 1]}}年
    </vs-radio>

  </div>

</div>



<script>
  layui.data.sendParams = function (params) {

    let { viewId, startNum, endNum, ...param } = params;
    viewId = viewId || 'appId';
    startNum = startNum || 1;
    endNum = endNum || 7;
    viewId = 'appId';
    //若需用到 layui 组件，layui.use 需写在该全局方法里面，如：
    layui.use(['admin', 'view'], function () {

      var admin = layui.admin;
      var gameId = layui.router().search.id;
      var view = layui.view;



    });
  }
</script>